

   <!-- 加入城市区域商圈选择 -->
   {template 'send/city_area_quan'}
   <!-- 加入城市区域商圈选择 -->

<div class="form-group">

	<label class="col-xs-12 col-sm-3 col-md-2 control-label">
            <span style='color:red'></span>小区名称：</label>
	<div class="col-sm-9 col-xs-9">
		<input type="text" name="data[village_name]" id="village_name" class="form-control"
                     autocomplete="off"   placeholder="请输入房源所属小区" value="{$item['village_name']}" />
                <input id="h24" name="data[village_id]" type="hidden" value="{$item['village_id']}" class="txt" maxlength="20"/>
	</div>
</div>


<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">
            <span style='color:red'></span>租 金：</label>
	<div class="col-sm-4 col-xs-4">
            <div class="input-group" style="display: flex;">
				<div>
					<input type="text" name="data[loyer]" id="loyer" class="form-control" autocomplete="off" 
                        placeholder="请输入数字，0表面议"  value="{$item['loyer']}" /> 
				</div>
			<div>
		 		<span class="input-group-addon">元/月</span> 
				<input type="hidden" name="data[prix_unitaire]" id="prix_unitaire" value="元/月"/> 	
			</div>
	
	</div>
	</div>
</div>

<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">
            <span style='color:red'></span>租赁方式：</label>
	<div class="col-sm-2 col-xs-2">
            <div class="input-group form-group">
				<?php  echo
 form_element::select(array('整租'=>'整租', '合租'=>'合租'),'data[danyuan]','danyuan',$item['danyuan']);
 ?> 
	 	
            </div>
	</div>
    <label class="col-xs-12 col-sm-1 col-md-1 control-label">
            <span style='color:red'></span>租期</label>
        <div class="col-sm-1 col-xs-2">
            <div class="input-group form-group">
		<?php  echo
 form_element::select(array('年租'=>'年租', '月租'=>'月租', '日租'=>'日租'),'data[dong]','dong',$item['dong']);
    ?>
            </div>
	</div>
    <label class="col-xs-12 col-sm-1 col-md-2 control-label">
            <span style='color:red'></span>押金方式</label>
        <div class="col-sm-3 col-xs-2">
            <div class="input-group form-group">
		<input type="text" name="data[menpai]" id="menpai" class="form-control"
                        placeholder=" 押一付一"  value="{$item['menpai']}" />           
	  	<span class="input-group-addon">-</span> 
            </div>
	</div>
</div>

<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">
            <span style='color:red'></span>面 积：</label>
	<div class="col-sm-3 col-xs-3">
            <div class="input-group form-group">
		<input type="text" name="data[superficie]" id="superficie" class="form-control" autocomplete="off" 
                        placeholder="请输入数字， 单位 ㎡ "  value="{$item['superficie']}" />           
	  	<span class="input-group-addon">㎡</span> 
            </div>
	</div>
</div>

<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">
            <span style='color:red'></span>楼 层：</label>
	<div class="col-sm-2 col-xs-2">
            <div class="input-group form-group">
		<input type="text" name="data[storey]" id="storey" class="form-control" autocomplete="off" 
                        placeholder="第几层"  value="{$item['storey']}" onkeyup="this.value=this.value.replace(/\D/g,'')" size="1" maxlength="3" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>           
	  	<span class="input-group-addon">层</span> 
            </div>
	</div>
        <div class="col-sm-2 col-xs-2">
            <div class="input-group form-group">
		<input type="text" name="data[total_storey]" id="total_storey" class="form-control" autocomplete="off" 
                        placeholder="共几层"  value="{$item['total_storey']}" onkeyup="this.value=this.value.replace(/\D/g,'')" size="1" maxlength="3" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>           
	  	<span class="input-group-addon">共几层</span>  
            </div>
	</div>
</div>

<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">
            <span style='color:red'></span>户 型：</label>
	<div class="col-sm-2 col-xs-2">
            <div class="input-group form-group">
		<input type="text" name="data[room]" id="room" class="form-control" autocomplete="off" 
                        placeholder="房"  value="{$item['room']}" onkeyup="this.value=this.value.replace(/\D/g,'')" size="1" maxlength="3" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>           
	  	<span class="input-group-addon">房</span> 
            </div>
	</div>
        <div class="col-sm-2 col-xs-2">
            <div class="input-group form-group">
		<input type="text" name="data[hall]" id="hall" class="form-control" autocomplete="off" 
                        placeholder="厅"  value="{$item['hall']}" onkeyup="this.value=this.value.replace(/\D/g,'')" size="1" maxlength="3" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>           
	  	<span class="input-group-addon">厅</span> 
            </div>
	</div>
        <div class="col-sm-2 col-xs-2">
            <div class="input-group form-group">
		<input type="text" name="data[garder]" id="garder" class="form-control" autocomplete="off" 
                        placeholder="卫"  value="{$item['garder']}" onkeyup="this.value=this.value.replace(/\D/g,'')" size="1" maxlength="3" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>           
	  	<span class="input-group-addon">卫</span>  
            </div>
	</div>
</div>

<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">
            <span style='color:red'></span>类型：</label>
	<div class="col-sm-2 col-xs-2">
            <div class="input-group form-group">
		<?php  echo
 form_element::select($selects['housetype'],'data[house_type]','house_type',$item['house_type']);
 ?>
        <span class="input-group-addon">房</span>
            </div>
	</div>
        <div class="col-sm-2 col-xs-2">
            <div class="input-group form-group">
		<?php  echo
 form_element::select($selects['chaoxiang'],'data[donner_sur]','donner_sur',$item['donner_sur']);
 ?>	  	<span class="input-group-addon">朝向</span> 
            </div>
	</div>
        <div class="col-sm-2 col-xs-2">
            <div class="input-group form-group">
		<select name="data[build_age]">
                        <option value="">-建筑年代-</option>
						<?php for( $i = (integer)date("Y"); $i > 1988 ;$i--){ ?>
                <option <?=($item['build_age']==$i ?'selected':'')?> value=<?=$i?>><?=$i?></option>
                        <?php } ?></select>          
	  	<span class="input-group-addon">年</span>  
            </div>
	</div>
    <div class="col-sm-2 col-xs-2">
            <div class="input-group form-group">
 <?php  echo
 form_element::select($selects['zhaungxiu'],'data[traveaux_finition]','traveaux_finition',$item['traveaux_finition']);
 ?>          
	  	<span class="input-group-addon">装修</span>  
            </div>
	</div>
</div>

<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">配套设施：</label>
	<div class="col-sm-9 col-xs-12">
        <div class="tese">
<?php echo form_element::combin_checbox($selects['rent_zhu'],'disposition','disposition',$item['disposition']);?>
       </div>
	</div>
</div>

<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">配 套：</label>
	<div class="col-sm-9 col-xs-12">
        <div class="tese">
<?php echo form_element::combin_checbox($selects['rent_zhu_all'],'disposition','disposition',$item['disposition']);?>
       </div>
	</div>
</div>
 
<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">门锁：</label>
	<div class="col-sm-9 col-xs-12">
        <div class="tese">
<?php echo form_element::combin_checbox($selects['rent_zhu_mensuo'],'disposition','disposition',$item['disposition']);?>
       </div>
	</div>
</div>
<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">厨房配套：</label>
	<div class="col-sm-9 col-xs-12">
        <div class="tese">
<?php echo form_element::combin_checbox($selects['rent_zhu_chufang'],'disposition','disposition',$item['disposition']);?>
       </div>
	</div>
</div>
<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">客厅配套：</label>
	<div class="col-sm-9 col-xs-12">
        <div class="tese">
<?php  echo form_element::combin_checbox($selects['rent_zhu_keting'],'disposition','disposition',$item['disposition']);?>
       </div>
	</div>
</div>

<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">卫生间配套：</label>
	<div class="col-sm-9 col-xs-12">
        <div class="tese">
<?php  echo form_element::combin_checbox($selects['rent_zhu_weishengjian'],'disposition','disposition',$item['disposition']);?>
       </div>
	</div>
</div>

<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">卧室配套：</label>
	<div class="col-sm-9 col-xs-12">
        <div class="tese">
<?php  echo form_element::combin_checbox($selects['rent_zhu_woshi'],'disposition','disposition',$item['disposition']);?>
       </div>
	</div>
</div>
 
<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">有效期至：</label>
	<div class="col-sm-4 col-xs-6">
		{php echo tpl_form_field_date('endtime', !empty($item['endtime']) ? date('Y-m-d H:i',$item['endtime']) : date('Y-m-d H:i'), 1)}

	</div>
</div>

<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">
            <span style='color:red'>*</span>标 题：</label>
	<div class="col-sm-9 col-xs-12">
		<input type="text" name="data[title]" id="title" class="form-control"
                        placeholder="必填项（很重要！一个好的推荐广告，可以大大提升房源点击量！）"  value="{$item['title']}" />
            <p>
                <a style="color:red" href="javascript:;"
                onclick="maketitle()">点击这里自动生成标题</a>
            </p>           
	</div>
</div>
<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">
            <span style='color:red'></span>房源编号：</label>
	<div class="col-sm-6 col-xs-6">
		<input type="text" name="data[house_sno]" id="house_sno" class="form-control"
                        placeholder="请输入公司房源编号"  value="{$item['house_sno']}" />
	</div>
</div>

<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">
            <span style='color:red'></span>经纪人：</label>
	<div class="col-sm-4 col-xs-6">
            <div class="input-group form-group">
		  <?php  echo
 form_element::select($brokers,'data[broker_id]','broker_id',$item['broker_id']);
 ?>        
	  	 
 
       </div>
       <p>添加经纪人后联系人信息不用填写。</p>
	</div>
         
</div>
<div class="form-group">
	<label class="col-xs-12 col-sm-3 col-md-2 control-label">
            <span style='color:red'></span>联系信息：</label>
	<div class="col-sm-4 col-xs-6">
            <div class="input-group form-group">
		<input type="text" name="data[publish_name]" id="publish_name" class="form-control"
                        placeholder="联系人"  value="{$item['publish_name']}" />           
	  	<span class="input-group-addon">名称</span> 
            </div>
	</div>
        <div class="col-sm-4 col-xs-6">
            <div class="input-group form-group">
		<input type="text" name="data[linkphone]" id="linkphone" class="form-control"
                        placeholder="手机号"  value="{$item['linkphone']}"/>           
	  	<span class="input-group-addon">手机号</span>  
            </div>
	</div>
</div>

<div class="form-group">

	<label class="col-xs-12 col-sm-3 col-md-2 control-label">形象图：</label>

	<div class="col-sm-9 col-xs-12">

		{php echo tpl_form_field_image('thumb', $item['thumb'], '', array('extras' => array('text' => 'readonly')))}

	</div>

</div>

<div class="form-group">

	<label class="col-xs-12 col-sm-3 col-md-2 control-label">房源图片：</label>

	<div class="col-sm-9 col-xs-12">

		{php echo tpl_form_field_multi_image('thumbs',$piclist)}

	</div>

</div>